<template>
  <real-data v-if="tabName == '实时监测'" />
  <his-data v-else />
</template>

<script>
import RealData from '@/views/reservoir/shuiYuQingJianCe/dataMonitoring/components/RealData'
import HisData from '@/views/reservoir/shuiYuQingJianCe/dataMonitoring/components/HisData'

export default {
  name: 'DataView',
  props: {
    tabName: {
      type: String,
      default: '实时监测'
    }
  },
  components: {
    RealData,
    HisData
  }
}
</script>

<style scoped></style>
